Labels:text | screenshot | font | document OCR: on countFrontierFiles (path) local (matchesFound = 0) «number of UserLand Frontier files we found on counter (folder) # fileloop (f in folder) if file.isFolder (f) # counter (f) else # msg (file.fileFromPath (f)) if file.creator (f) == 'LAND' matchesFound++ counter (file.folderFromPath (path)) if matchesFound == 0 local (s = file.fileFromPath (file.folderFromPath (path))) # s = "There are no Frontier files in the " + s + " folder." dialog.alert (s) else local (s = file.fileFromPath (file.folderFromPath (path))) $ = "There were " + matchesFound + " Frontier files in the " + $ + " folder." dialog.alert (s)